package com.provider.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.provider.dao.TProductEpicDao;
import com.provider.entity.TProductEpic;
import com.provider.service.TProductEpicService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 产品EPIC任务(TProductEpic)表服务实现类
 *
 * @author makejava
 * @since 2024-04-29 11:22:00
 */
@Service("tProductEpicService")
@Transactional(rollbackFor = Exception.class)
public class TProductEpicServiceImpl extends ServiceImpl<TProductEpicDao, TProductEpic> implements TProductEpicService {

    @Override
    public List<TProductEpic> queryProductEpic(String systemId) {
        LambdaQueryWrapper<TProductEpic> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(TProductEpic::getSystemId,systemId).eq(TProductEpic::getIsValid,"Y");
        return this.list(lambdaQueryWrapper);
    }
}

